import {post, postForm} from './http'
// spike-provider 服务名
export const Login = p => post('/spike-provider/user/login', p);

export const oauth2Login = p => post('/spike-provider/oauth2/authorize', p);

export const oauth2CallBack = p => post('/client-app/oauth2/callback', p);

export const register = p => post('/spike-provider/user/add', p);

export const clientListByUser = p => post('/spike-provider/clientdetails/getListByUser', p);

export const clientAdd = p => post('/spike-provider/clientdetails/client/add', p);

export const getUserByToken = p => postForm('/spike-provider/oauth2/getByToken', p);